//
//  PlayerViewController.h
//  Boom
//
//  Created by 云鹏 赵 on 15/3/5.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AudioStreamer.h"
#import <QuartzCore/QuartzCore.h>
#import <MediaPlayer/MediaPlayer.h>
#import <CFNetwork/CFNetwork.h>
#import "PlayData.h"
#import "Raido1ImageView.h"
#import "UIImageView+WebCache.h"
#import "Raido2.h"
#import "SearchTrack.h"

@interface PlayerViewController : UIViewController

{
//    UITextField *downloadSourceField; // 下载音频的网址输入框
//    UIButton *button; // 播放 / 暂停按钮
//    UIView *volumeSlider; // 滑块的view
    UILabel *positionLabel; //
    UISlider *progressSlider; // 滑块
    NSTimer *progressUpdateTimer;
    NSString *currentImageName; // 当前图片名称
}
@property (nonatomic, retain) AudioStreamer *streamer; // 封装的播放器
;
@property (nonatomic, retain) UIView *volumeSlider;// 滑块的view
@property (nonatomic, retain) UISlider *slider; // 滑块
@property (nonatomic, retain) UIImageView *myImageView; // 播放器imageView
@property (nonatomic, retain) UILabel *titleLable; // 副标题lable
@property (nonatomic, retain) UILabel *tagsLable; // 标签lable
//@property (nonatomic, retain) UIScrollView *richIntro; // 专辑介绍(播放button旁边)
//@property (nonatomic, retain) UILabel *richIntroLable; // 专辑介绍lable
@property (nonatomic, retain) UIButton *button; // 播放/暂停按钮
//@property (nonatomic, retain) UILabel *likesCountLable; // 喜欢人数lable
@property (nonatomic, retain) Raido1ImageView *raido1ImageView;
@property (nonatomic, retain) PlayData *playData;
@property (nonatomic, retain) SearchTrack *searchTrack;
@property (nonatomic, copy) NSString *playUrl; // 播放音频地址
@property (nonatomic, retain) Raido2 *raido2;
// 创建记录滑动位置的三个属性
@property (nonatomic, assign) CGPoint startPoint;
@property (nonatomic, assign) CGPoint endPoint;
@property (nonatomic, assign) CGPoint startCenter;

+ (instancetype)sharePlayerDataHandel;
- (void)buttonPressed;
- (void)spinButton;
- (void)updateProgress:(NSTimer *)aNotification;
- (void)streamerStop;
@end
